/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DataConverters.interfaces.dataformulaobject.impl;

import DataConverters.interfaces.dataformulaobject.intefaces.BooleanCell;
import DataConverters.interfaces.dataformulaobject.intefaces.BooleanFormulaCell;
import DataConverters.interfaces.dataformulaobject.intefaces.CellBuilder;
import DataConverters.interfaces.dataformulaobject.intefaces.CellType;
import DataConverters.interfaces.dataformulaobject.intefaces.DateCell;
import DataConverters.interfaces.dataformulaobject.intefaces.DateFormulaCell;
import DataConverters.interfaces.dataformulaobject.intefaces.ErrorCell;
import DataConverters.interfaces.dataformulaobject.intefaces.ErrorFormulaCell;
import DataConverters.interfaces.dataformulaobject.intefaces.LabelCell;
import DataConverters.interfaces.dataformulaobject.intefaces.NumberCell;
import DataConverters.interfaces.dataformulaobject.intefaces.NumberFormulaCell;
import DataConverters.interfaces.dataformulaobject.intefaces.StringFormulaCell;
import java.util.Date;

/**
 *
 * @author Nobody
 */
public class DefaultCellBuilder implements CellBuilder {

    public BooleanCell createBooleanCell(int column, int row, boolean value) {
        return new DefaultBooleanCell(column, row, CellType.BOOLEAN, value);
    }

    public BooleanFormulaCell createBooleanFormulaCell(int column, int row, String formula, boolean value) {
        return new DefaultBooleanFormulaCell(column, row, CellType.BOOLEAN_FORMULA, formula, value);
    }

    public DateCell createDateCell(int column, int row, Date date) {
        return new DefaultDateCell(column, row, CellType.DATE, date);
    }

    public DateFormulaCell createDateFormulaCell(int column, int row, String formula, Date date) {
        return new DefaultDateFormulaCell(column, row, CellType.DATE_FORMULA, formula, date);
    }

    public ErrorCell createErrorCell(int column, int row, int errorCode) {
        return new DefaultErrorCell(column, row, CellType.ERROR, errorCode);
    }

    public ErrorFormulaCell createErrorFormulaCell(int column, int row, String formula, int errorCode) {
        return new DefaultErrorFormulaCell(column, row, CellType.FORMULA_ERROR, formula, errorCode);
    }

    public LabelCell createLabelCell(int column, int row, String value) {
        return new DefaultLabelCell(column, row, CellType.LABEL, value);
    }

    public NumberCell createNumberCell(int column, int row, double number) {
        return new DefaultNumberCell(column, row, CellType.NUMBER, number);
    }

    public NumberFormulaCell createNumberFormulaCell(int column, int row, String formula, double number) {
        return new DefaultNumberFormulaCell(column, row, CellType.NUMBER_FORMULA, formula, number);
    }

    public StringFormulaCell createStringFormulaCell(int column, int row, String formula, String value) {
        return new DefaultStringFormulaCell(column, row, CellType.STRING_FORMULA, formula, value);
    }
}
